package com.atguigu.spzx.manager.service.impl;

import com.atguigu.spzx.common.log.service.AsyncSysOperLogService;
import com.atguigu.spzx.manager.mapper.SysOperLogMapper;
import com.atguigu.spzx.model.entity.system.SysOperLog;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class AsyncSysOperLogServiceImpl implements AsyncSysOperLogService {
    @Resource
    private SysOperLogMapper asyncSysOperLogMapper;

    /**
     * 保存日志
     * @param sysOperLog
     */
    @Override
    public void saveSysLog(SysOperLog sysOperLog) {
        asyncSysOperLogMapper.saveSysLog(sysOperLog);
    }
}
